﻿using AbpVnext__Comon.iservice;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Modularity;

namespace AbpVnext__Comon.service
{
    /// <summary>
    /// 特性注册
    /// </summary>
    [Dependency(ServiceLifetime.Transient)]
    public class UserService : IUserService  //,ITransientDependency  //接口注册
    {
        /// <summary>
        /// 获取用户名
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public string GetUser()
        {
            return "用户名";
        }
    }
}
